package sea.simulate;

import java.util.ArrayList;
import javax.swing.DefaultComboBoxModel;
import sea.util.PublicParam;
import sea.util.SimHyAHelper;
import sea.util.WinHelper;


/**
 *
 * This class builds the layout of ODE and HYBRID interface of Simulate
 * 
 * @author  Zhirun Ding
 * 
 * Created on 05/07/2012
 * 
 */

public class SimulateODEForm extends javax.swing.JDialog {
    
    /** Creates new form SimuldateDForm */
    public SimulateODEForm(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();  
        
        //the combobox of integrator
        ArrayList<String> descriptions = PublicParam.SimHyACommand.getIntegratorDescriptionList();
        //System.out.println(descriptions.size());
        DefaultComboBoxModel lm = new DefaultComboBoxModel();
        for (int i = 0; i < descriptions.size(); i++) {
            lm.addElement(descriptions.get(i));
            //System.out.println(descriptions.get(i));
        }
        integratorComboBox.setModel(lm);
        
        //text box
        atolText.setText(String.valueOf(PublicParam.SimHyACommand.getDefaultAtol()));
        maxeventerrorText.setText(String.valueOf(PublicParam.SimHyACommand.getDefaultMaxEventError()));
        maxeventiterText.setText(String.valueOf(PublicParam.SimHyACommand.getDefaultMaxEventIter()));
        maxeventstepText.setText(String.valueOf(PublicParam.SimHyACommand.getDefaultMaxEventStep()));
        maxstepText.setText(String.valueOf(PublicParam.SimHyACommand.getDefaultMaxStepSize()));
        minstepText.setText(String.valueOf(PublicParam.SimHyACommand.getDefaultMinStepSize()));
        rtolText.setText(String.valueOf(PublicParam.SimHyACommand.getDefaultRtol()));        
        
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        integratorComboBox = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        atolText = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        minstepText = new javax.swing.JTextField();
        maxeventstepText = new javax.swing.JTextField();
        maxeventerrorText = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        rtolText = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        maxstepText = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        maxeventiterText = new javax.swing.JTextField();
        dynamicSwitchButton = new javax.swing.JButton();
        advancedButton = new javax.swing.JButton();
        backButton = new javax.swing.JButton();
        confirmButton = new javax.swing.JButton();
        runsText = new javax.swing.JTextField();
        runsLabel = new javax.swing.JLabel();
        helpButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sea.SimHyAGui.class).getContext().getResourceMap(SimulateODEForm.class);
        setTitle(resourceMap.getString("SimulateODEForm.title")); // NOI18N
        setName("SimulateODEForm"); // NOI18N
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                formComponentShown(evt);
            }
        });

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        integratorComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "dp85", "rk4", "" }));
        integratorComboBox.setToolTipText(resourceMap.getString("integratorComboBox.toolTipText")); // NOI18N
        integratorComboBox.setName("integratorComboBox"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        atolText.setText(resourceMap.getString("atolText.text")); // NOI18N
        atolText.setToolTipText(resourceMap.getString("atolText.toolTipText")); // NOI18N
        atolText.setName("atolText"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        minstepText.setText(resourceMap.getString("minstepText.text")); // NOI18N
        minstepText.setToolTipText(resourceMap.getString("minstepText.toolTipText")); // NOI18N
        minstepText.setName("minstepText"); // NOI18N

        maxeventstepText.setText(resourceMap.getString("maxeventstepText.text")); // NOI18N
        maxeventstepText.setToolTipText(resourceMap.getString("maxeventstepText.toolTipText")); // NOI18N
        maxeventstepText.setName("maxeventstepText"); // NOI18N

        maxeventerrorText.setText(resourceMap.getString("maxeventerrorText.text")); // NOI18N
        maxeventerrorText.setToolTipText(resourceMap.getString("maxeventerrorText.toolTipText")); // NOI18N
        maxeventerrorText.setName("maxeventerrorText"); // NOI18N

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        rtolText.setText(resourceMap.getString("rtolText.text")); // NOI18N
        rtolText.setToolTipText(resourceMap.getString("rtolText.toolTipText")); // NOI18N
        rtolText.setName("rtolText"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        maxstepText.setText(resourceMap.getString("maxstepText.text")); // NOI18N
        maxstepText.setToolTipText(resourceMap.getString("maxstepText.toolTipText")); // NOI18N
        maxstepText.setName("maxstepText"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        maxeventiterText.setText(resourceMap.getString("maxeventiterText.text")); // NOI18N
        maxeventiterText.setToolTipText(resourceMap.getString("maxeventiterText.toolTipText")); // NOI18N
        maxeventiterText.setName("maxeventiterText"); // NOI18N

        dynamicSwitchButton.setText(resourceMap.getString("dynamicSwitchButton.text")); // NOI18N
        dynamicSwitchButton.setName("dynamicSwitchButton"); // NOI18N
        dynamicSwitchButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dynamicSwitchButtonActionPerformed(evt);
            }
        });

        advancedButton.setText(resourceMap.getString("advancedButton.text")); // NOI18N
        advancedButton.setName("advancedButton"); // NOI18N
        advancedButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                advancedButtonActionPerformed(evt);
            }
        });

        backButton.setText(resourceMap.getString("backButton.text")); // NOI18N
        backButton.setName("backButton"); // NOI18N
        backButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backButtonActionPerformed(evt);
            }
        });

        confirmButton.setText(resourceMap.getString("confirmButton.text")); // NOI18N
        confirmButton.setName("confirmButton"); // NOI18N
        confirmButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                confirmButtonActionPerformed(evt);
            }
        });

        runsText.setText(resourceMap.getString("runsText.text")); // NOI18N
        runsText.setName("runsText"); // NOI18N

        runsLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        runsLabel.setText(resourceMap.getString("runsLabel.text")); // NOI18N
        runsLabel.setName("runsLabel"); // NOI18N

        helpButton.setText(resourceMap.getString("helpButton.text")); // NOI18N
        helpButton.setName("helpButton"); // NOI18N
        helpButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                helpButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel3)
                                    .addComponent(jLabel2))
                                .addGap(29, 29, 29))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(runsLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(35, 35, 35)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(runsText, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(maxeventerrorText)
                            .addComponent(minstepText, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(maxeventstepText, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(atolText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE))
                        .addGap(57, 57, 57)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rtolText, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)
                            .addComponent(maxstepText, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)
                            .addComponent(maxeventiterText, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)
                            .addComponent(integratorComboBox, javax.swing.GroupLayout.Alignment.TRAILING, 0, 231, Short.MAX_VALUE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(279, 279, 279)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(backButton, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(dynamicSwitchButton, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)))
                        .addGap(19, 19, 19)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(advancedButton, javax.swing.GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE)
                            .addComponent(confirmButton, javax.swing.GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addComponent(helpButton)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(33, 33, 33)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(runsLabel)
                            .addComponent(runsText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(27, 27, 27)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(atolText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(29, 29, 29)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(minstepText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(28, 28, 28)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(maxeventstepText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(26, 26, 26)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(maxeventerrorText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(30, 30, 30))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(integratorComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(27, 27, 27)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(rtolText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(29, 29, 29)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(maxstepText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(28, 28, 28)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(maxeventiterText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(39, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(255, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dynamicSwitchButton)
                    .addComponent(advancedButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(backButton)
                    .addComponent(helpButton)
                    .addComponent(confirmButton))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void dynamicSwitchButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dynamicSwitchButtonActionPerformed
        // TODO add your handling code here:
        WinHelper.showDialog(PublicParam.SimulateHDynswForm, SimulateHDynswForm.class);
    }//GEN-LAST:event_dynamicSwitchButtonActionPerformed

    private void advancedButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_advancedButtonActionPerformed
        // TODO add your handling code here:
        WinHelper.showDialog(PublicParam.SimulateHAdvancedForm, SimulateHAdvancedForm.class);
    }//GEN-LAST:event_advancedButtonActionPerformed

    private void backButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backButtonActionPerformed
        // TODO add your handling code here:
        this.dispose();
        if (PublicParam.PreviousForm != null) {
            PublicParam.PreviousForm.setVisible(true);
        } 
    }//GEN-LAST:event_backButtonActionPerformed

    private void confirmButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_confirmButtonActionPerformed
        //generate simulate command
        toSimulateCommand();
        
        //execute simulate command
        PublicParam.SimHyACommandExpression += ")";
        this.setVisible(false);     
        SimHyAHelper.executeCommand();
        
        //set all variable of form to null;
        this.dispose();
        WinHelper.closeFormAfterCommand();
    }//GEN-LAST:event_confirmButtonActionPerformed

    void toSimulateCommand() {
        String s = "";
        
        //Integrator
        try {
            if (integratorComboBox.getSelectedIndex() >= 0 
                    && integratorComboBox.getSelectedItem().toString().length() > 0) {
                if (integratorComboBox.getSelectedIndex() == 0) {
                    s += ",integrator=dp85";
                } else if (integratorComboBox.getSelectedIndex() == 1) {
                    s += ",integrator=rk4";                             
                }
            }
        } catch(Exception ex) {            
        }
        
        //Runs
        try {
            if (!PublicParam.SimulationType.equals("ODE") && runsText.getText().length() > 0 
                    && Double.valueOf(runsText.getText()) != 0.0) {
                s += ",runs=" + runsText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //atol
        try {
            if (atolText.getText().length() > 0 
                    && Double.valueOf(atolText.getText()) != 0.0) {
                s += ",atol=" + atolText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //rtol
        try {
            if (rtolText.getText().length() > 0 
                    && Double.valueOf(rtolText.getText()) != 0.0) {
                s += ",rtol=" + rtolText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //minstep
        try {
            if (minstepText.getText().length() > 0 
                    && Double.valueOf(minstepText.getText()) != 0.0) {
                s += ",minstep=" + minstepText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //maxstep
        try {
            if (maxstepText.getText().length() > 0 
                    && Double.valueOf(maxstepText.getText()) != 0.0) {
                s += ",maxstep=" + maxstepText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //maxeventstep
        try {
            if (maxeventstepText.getText().length() > 0 
                    && Double.valueOf(maxeventstepText.getText()) != 0.0) {
                s += ",maxeventstep=" + maxeventstepText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //maxeventiter
        try {
            if (maxeventiterText.getText().length() > 0 
                    && Double.valueOf(maxeventiterText.getText()) != 0.0) {
                s += ",maxeventiter=" + maxeventiterText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //maxeventerror
        try {
            if (maxeventerrorText.getText().length() > 0 
                    && Double.valueOf(maxeventerrorText.getText()) != 0.0) {
                s += ",maxeventerror=" + maxeventerrorText.getText();
            }
        } catch(Exception ex) {            
        }
        
        //verbose = 1 must always be added to the command.
        s += ",verbose=1";
        
        PublicParam.SimHyACommandExpression += s;
        
        //advance
        PublicParam.SimHyACommandExpression += PublicParam.TempSimHyACommandExpression1;
        PublicParam.TempSimHyACommandExpression1 = "";
        //dynamic switch
        PublicParam.SimHyACommandExpression += PublicParam.TempSimHyACommandExpression2;
        PublicParam.TempSimHyACommandExpression2 = "";
    }
    
    private void formComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentShown
        //hide the button of Dynamic Switch
        if (PublicParam.SimulationType.equals("ODE")) {
            dynamicSwitchButton.setVisible(false);
            runsLabel.setVisible(false);
            runsText.setVisible(false);
        } else {
            dynamicSwitchButton.setVisible(true);
            runsLabel.setVisible(true);
            runsText.setVisible(true);
        }
        
        //hide simulate form
        if (PublicParam.PreviousForm != null) {
            PublicParam.PreviousForm.setVisible(false);
        }     
    }//GEN-LAST:event_formComponentShown

    private void helpButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpButtonActionPerformed
        WinHelper.showHelp("simulate/ode");
    }//GEN-LAST:event_helpButtonActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                SimulateODEForm dialog = new SimulateODEForm(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton advancedButton;
    private javax.swing.JTextField atolText;
    private javax.swing.JButton backButton;
    private javax.swing.JButton confirmButton;
    private javax.swing.JButton dynamicSwitchButton;
    private javax.swing.JButton helpButton;
    private javax.swing.JComboBox integratorComboBox;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JTextField maxeventerrorText;
    private javax.swing.JTextField maxeventiterText;
    private javax.swing.JTextField maxeventstepText;
    private javax.swing.JTextField maxstepText;
    private javax.swing.JTextField minstepText;
    private javax.swing.JTextField rtolText;
    private javax.swing.JLabel runsLabel;
    private javax.swing.JTextField runsText;
    // End of variables declaration//GEN-END:variables
    
}
